<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str = "Hello String";
        console.log(str);

        console.log(str.length);

        console.log(str.charAt(4));

        console.log(str.indexOf("lo"))

        var s =str.trim();
        console.log(s);
        
        console.log (s.substring(0,5));
    </script>
    
</body>
</html>